//
//	File Name   :	Clock.inl
//	Description :	Inline Functions.
//	Author		:	William McVicar
//  Mail		:	mcvicar.william@gmail.com
//

inline u32 Clock::GetTick() const
{
	return m_uiTick;
}

inline float Clock::GetTickF() const
{
	if( !m_bUsingQPF )
		return(static_cast<float>(m_uiTick - m_uiLastTick) / 1000.0f);
	else
		return( static_cast<float>( m_llQPFTick - m_llQPFLastTick ) / static_cast<float>( m_llQPFTicksPerSec ) );
}

inline float Clock::GetFrameRate() const
{
	return m_fFrameRate;
}

u32 Clock::GetTimeAbsolute()
{
	return timeGetTime();
}

inline float Clock::GetTimeAbsoluteF()
{
	return static_cast< float >( GetTimeAbsoluteD() );
}